package cn.firstquestion;

public class Test {
    public static void main(String[] args) {

        Animal animal = new Dog("约翰杰克土狗","骨头");
        Animal animal1 = new Cat("克里斯蒂娜","鱼");

        Person jjx = new Person("蒋金鑫");
        jjx.show(animal);
        jjx.show(animal1);
    }
}
